package com.ruoyi.framework.config.properties;

import cn.jiguang.common.connection.IHttpClient;
import cn.jmessage.api.JMessageClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @version :
 * @program: easyBuy
 * @description: 极光IM配置类
 * @author: 周爱鸿
 * @create: 2020-09-18 10:17
 **/
@Configuration
public class JMessageConfig {

	@Value("${messageclient.appkey}")
	private String appkey;
	@Value("${messageclient.masterSecret}")
	private String masterSecret;

	@Bean
	public JMessageClient jMessageClient(){
		return new JMessageClient(appkey,masterSecret);
	}

}
